package com.example.blog.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * ClassName: DateUtils
 * Package: IntelliJ IDEA
 * Description:
 *
 * @Author 谷京京
 * @Create 2024/3/26 11:13
 * @Version 1.0
 */
public class DateUtils {
    public static String formatDate(Date date) {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
        return simpleDateFormat.format(date);
    }
}
